<%@page import="com.hongye.app.model.Real_nameModel"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" isELIgnored="false"
    pageEncoding="UTF-8"%>
    <% Real_nameModel realname = (Real_nameModel)request.getAttribute("realnameDetail"); %>
<!doctype html>
<html class="fixed">

	<head>
		<!-- Basic -->
		<meta charset="UTF-8">
		<meta name="keywords" content="HTML5 Admin Template" />
		<meta name="description" content="Porto Admin - Responsive HTML5 Template">
		<meta name="author" content="okler.net">
		<!-- Mobile Metas -->
		<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
		<!-- Web Fonts  -->
		<!-- Vendor CSS -->
		<link rel="stylesheet" href="../admin/css/bootstrap.css" />
		<link rel="stylesheet" href="../admin/css/font-awesome/css/font-awesome.css" />
        <link rel="stylesheet" href="../admin/css/select2.css" />
		<!-- Theme CSS -->
		<link rel="stylesheet" href="../admin/css/theme.css" />
		<!-- Skin CSS -->
		<link rel="stylesheet" href="../admin/css/default.css" />
		<!-- Theme Custom CSS -->
		<!-- Theme Custom ../admin/css -->
		<!-- 
		<link href="../admin/css/video-js.min.css" rel="stylesheet">
		<script src="../admin/js/video.min.js" type="text/javascript"></script>
		<link type="text/css" rel="stylesheet" href="/ueditor/third-party/video-js/video-js.css"/>
		<script language="javascript" type="text/javascript" src="/ueditor/third-party/video-js/video.js"></script>
		 -->
		<script src="../admin/js/modernizr.js"></script>
	</head>
	<body>
		<section role="main" class="content-body" style="margin-top: 50px;">
			<!-- start: page -->
			<section class="panel">
				<header class="panel-heading">
					<h2 class="panel-title">认证信息审核-详情</h2>
				</header>
				<div class="panel-body">
					<div class="panel-body">
						<p>用户手机号：<%=realname.get("buyer_phone") %></p>
						<p>用户昵称：<%=realname.get("buyer_nick") %></p>
						<p>用户店铺名称：<%=realname.get("shop_name") %></p>
						<p>用户店铺经营意向：<%=realname.get("shop_saletype") %></p>
						<p><font color="#FF0000">企业认证信息：</font> <br>
						<p>企业法人：<%=realname.get("legal_person") %></p>
						<p>企业名称：<%=realname.get("company_name") %></p>
						<p>机构代码证号：<%=realname.get("org_code") %></p>
						<p>所在地区：<%=realname.get("region") %></p>
						<p>详细地址：<%=realname.get("address") %></p>
						<p>法人身份证照片-正：<img style="height: 1500px;width: 900px;" src="http://120.27.117.192/rbg/upload/<%=realname.get("idcard_just_img")%>" /></p>
						<p>法人身份证照片-反：<img style="height: 1500px;width: 900px;" src="http://120.27.117.192/rbg/upload/<%=realname.get("idcard_back_img")%>" /></p>
						<p>营业执照照片：<img style="height: 1500px;width: 900px;" src="http://120.27.117.192/rbg/upload/<%=realname.get("license_img")%>" /></p>
						<p>上传日期：<%=realname.get("ctime","") %></p>
						<div class="text-center">
						<!--  
							<p><font color="#FF0000">不同意请填写原因：</font> <br>
							<textarea id="reason" cols="50" rows="5" name="reason" placeholder="原因..." > </textarea>
							</p>
						-->
						</div>
						<hr>
						<%int state=realname.getInt("state"); 
							if(state==1){%>
							<div class="mb-xs text-center">
								<a class="btn btn-facebook mb-md ml-xs mr-xs" href="javascript:void(0)" onclick="agree()">认证通过 </a>
	                               <a class="btn btn-facebook mb-md ml-xs mr-xs" onclick="noAgree()">不通过 </a>
							</div>
						<%}%>
						<hr>
						<hr>
					</div>
			</section>
			<!-- Specific Page Vendor -->
			<!-- Vendor -->
<script src="../admin/js/jquery.js"></script>
<script src="../admin/js/layer.js"></script>
<!-- Theme Base, Components and Settings -->
<script src="../admin/js/theme.js"></script>
<!-- Theme Custom -->
<script src="../admin/js/theme.custom.js"></script>
<!-- Theme Initialization Files -->
<script src="../admin/js/theme.init.js"></script>
<!-- Examples -->
<script src="../admin/js/tables/examples.datatables.default.js"></script>
<script src="../admin/js/tables/examples.datatables.row.with.details.js"></script>
<script src="../admin/js/tables/examples.datatables.tabletools.js"></script>
<script type="text/javascript">
function agree(){
	var id=${id};
	$.get('./finisRealName?state=3&id='+id,function(data){
		if(data=='suc'){
			location.href='./realnameView';
		}else{
			alert('更新失败!');
		}
	});
}

function noAgree(){
	var id=${id};
	$.get('./finisRealName?state=2&id='+id,function(data){
		if(data=='suc'){
			layer.msg('更新成功！');
			location.href='./realnameView';
		}else{
			layer.msg('更新失败...', {icon: 5});
		}
	});
}
</script>
</body>

</html>